package cn.tedu.hw_two;

public class Test4 {
public static void main(String[] args) {
	M a=new N();
	a.eat();
	a.he();
	C c=new C2();
	c.eat();
	c.he();
	c.la();
	M m=new C2();
	m.eat();
	m.he();
	B b=new C2();
	b.la();


}
}
interface M{
	abstract public void eat();
	abstract public void he();
}
class N implements M{
	@Override
	public void eat() {
		System.out.println(1);
	}
	@Override
	public void he() {
		System.out.println(2);
	}
}
abstract class N2 implements M{
	
}

interface B{
	public void la();
}
interface C extends M,B{
	
}
class C2 implements C{
	@Override
	public void eat() {
		System.out.println(3);
	}
	@Override
	public void he() {
		System.out.println(4);
	}
	@Override
	public void la() {
		System.out.println(5);
	}
}